home *** CD-ROM | disk | FTP | other *** search
/ Intel Web Outfitter Tool Kit 4 / Intel WebOutfitter Tool Kit Version 4.0.iso / public / Outfitter / TKM / scripts / objII.js < prev    next >
Encoding:
JavaScript  |  2000-03-13  |  4.0 KB  |  122 lines

  1. //--><script language="JavaScript">
  2.  
  3. function IMG_INFO(){    
  4.     //  ####  BEGIN g_sTKMRoot DEFINITION  ####
  5.     //  Start at the beginning of the location and find our document root directory
  6.     var g_sHref = location.href.toLowerCase();
  7.     var g_nEndPos = g_sHref.indexOf('outfitter/');
  8.     //  Grab everything up to the end of the word outfitter and add "/tkm/" to set the TKM Root
  9.     var g_sTKMRoot = g_sHref.substring(0, (g_nEndPos + 9)) + '/tkm/';
  10.     //  Move past the "outfitter/" string and start looking for the geo/lang
  11.     var g_nBeginGeo = g_nEndPos + 10;
  12.     //  Find the next "/" and we have the geo/lang
  13.     var g_nEndGeo = g_sHref.indexOf('/', g_nBeginGeo);
  14.     //  Parse out the geo/lang so we know what to use
  15.     var g_sGeo = g_sHref.substring(g_nBeginGeo, g_nEndGeo);
  16.     //  ####  END g_sTKMRoot DEFINITION  ####
  17.     
  18.     switch (g_sGeo){
  19.         case "au":
  20.             this.install    = 'width=725,height=530';
  21.             this.update        = 'width=489,height=412';            
  22.             this.progress    = 'width=412,height=324';
  23.             this.wait        = 'width=474,height=361';
  24.             break;
  25.         case "br":
  26.             this.install    = 'width=775,height=530';
  27.             this.update        = 'width=519,height=442';
  28.             this.progress    = 'width=433,height=344';
  29.             this.wait        = 'width=474,height=376';
  30.             break;
  31.         case "ca":
  32.             this.install    = 'width=725,height=530';
  33.             this.update        = 'width=489,height=412';            
  34.             this.progress    = 'width=412,height=324';
  35.             this.wait        = 'width=474,height=361';
  36.             break;
  37.         case "cafr":
  38.             this.install    = 'width=775,height=545';
  39.             this.update        = 'width=519,height=412';
  40.             this.progress    = 'width=412,height=324';
  41.             this.wait        = 'width=474,height=361';
  42.             break;    
  43.         case "cn":
  44.             this.install    = 'width=650,height=530';
  45.             this.update        = 'width=489,height=412';
  46.             this.progress    = 'width=412,height=295';
  47.             this.wait        = 'width=433,height=309';
  48.             break;
  49.         case "de":
  50.             this.install    = 'width=725,height=530';
  51.             this.update        = 'width=550,height=422';
  52.             this.progress    = 'width=412,height=324';
  53.             this.wait        = 'width=474,height=361';
  54.             break;
  55.         case "es":
  56.             this.install    = 'width=725,height=530';
  57.             this.update        = 'width=489,height=412';
  58.             this.progress    = 'width=432,height=316';
  59.             this.wait        = 'width=474,height=361';
  60.             break;
  61.         case "fr":
  62.             this.install    = 'width=775,height=545';
  63.             this.update        = 'width=519,height=412';
  64.             this.progress    = 'width=412,height=324';
  65.             this.wait        = 'width=474,height=361';
  66.             break;
  67.         case "gb":
  68.             this.install    = 'width=725,height=530';
  69.             this.update        = 'width=489,height=412';            
  70.             this.progress    = 'width=412,height=324';
  71.             this.wait        = 'width=474,height=361';
  72.             break;
  73.         case "it":
  74.             this.install    = 'width=700,height=530';
  75.             this.update        = 'width=489,height=420';
  76.             this.progress    = 'width=412,height=324';
  77.             this.wait        = 'width=474,height=361';
  78.             break;
  79.         case "jj":
  80.             this.install    = 'width=538,height=586';
  81.             this.update        = 'width=489,height=412';
  82.             this.progress    = 'width=437,height=324';
  83.             this.wait        = 'width=474,height=361';
  84.             break;
  85.         case "jp":
  86.             this.install    = 'width=650,height=530';
  87.             this.update        = 'width=489,height=412';
  88.             this.progress    = 'width=412,height=324';
  89.             this.wait        = 'width=474,height=361';
  90.             break;
  91.         case "kr":
  92.             this.install    = 'width=775,height=530';
  93.             this.update        = 'width=489,height=412';
  94.             this.progress    = 'width=412,height=324';
  95.             this.wait        = 'width=435,height=361';
  96.             break;
  97.         case "tw":
  98.             this.install    = 'width=538,height=530';
  99.             this.update        = 'width=436,height=390';
  100.             this.progress    = 'width=412,height=283';
  101.             this.wait        = 'width=393,height=315';
  102.             break;
  103.         case "us":
  104.             this.install    = 'width=725,height=530';
  105.             this.update        = 'width=489,height=412';            
  106.             this.progress    = 'width=412,height=324';
  107.             this.wait        = 'width=474,height=361';
  108.             break;
  109.         // Defaults to GB    
  110.         default:
  111.             this.install    = 'width=725,height=530';
  112.             this.update        = 'width=489,height=412';
  113.             this.progress    = 'width=412,height=324';
  114.             this.wait        = 'width=474,height=361';
  115.             break;            
  116.     }    
  117.     
  118. }
  119.  
  120. var ii = new IMG_INFO();
  121.  
  122. //--></script>